<include file="Public:header" />
<form action="" method="post" enctype="multipart/form-data">
    <table>
        <tr>
            <td colspan="2">
                <strong class="">编辑品牌</strong>
                <a href="{:U('/Brand/')}">返回</a>
            </td>
        </tr>
        <tr>
            <td>
                属性编号:
            </td>
            <td>
                <select name="brandPro">
                    <foreach name="brandPro" item="bp">
                        <option value="{$bp.id}"
                            <if condition="$brand.pid == $bp['id']">
                                selected="selected"
                            </if>>{$bp.name}
                        </option>
                    </foreach>
                </select>
            </td>
        </tr>
        <tr>
            <td>
                中文名称:
            </td>
            <td>
                <input name="fName" type="text" class="" id="" maxlength="50" value="{$brand.name}"/>
            </td>
        </tr>
        <tr>
            <td>
                英文名称:
            </td>
            <td>
                <input name="eName" type="text" class="" id="" maxlength="50" value="{$brand.ename}"/>
            </td>
        </tr>
        <tr>
			<td>首字母:</td>
			<td><input name="initials" type="text" class="" id="" maxlength="1" value="{$brand.initials}"/></td>
		</tr>
        <tr>
            <td>
                原图:
            </td>
            <td>
                <img alt="" src="{$imageUrl}" style="max-width: 200px;">
            </td>
        </tr>
        <tr>
            <td>
                图片:
            </td>
            <td>
                <input type="file" name="image">
            </td>
        </tr>
        <tr>
            <td>
                简介:
            </td>
            <td>
                {:W('OnlineEditor',array('name'=>'brandIntr','centent'=>$brand['intr']))}
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" id="button" value=" 提交 " />
            </td>
        </tr>
    </table>
</form>
<include file="Public:footer" />